import {
    DIC
} from '@/const/dic'
export const tabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: false,
    menuBtn: true,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "审批单号",
        prop: "coded",
    },{
        label: "审批状态",
        prop: "state",
        slot: true,
 /*   },{
        label: "仓库",
        prop: "warehouseName",*/
    },{
        label: "申请部门/人",
        prop: "dealData",
        slot: true,
    },{
        label: "审批时间",
        prop: "purchasingDate",
        width: "80",
    }]
};

export const addModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    menuBtn: false,
    menu: false,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    size: 'mini',
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuAlign: "center",
    column: [{
        label: "仓库",
        prop: "wareHouseName",
    },{
        label: "物品编号",
        prop: "goodsCoded",
    },{
        label: "物品名称",
        prop: "goodsName",
    },{
        label: "规格",
        prop: "specs",
    },{
        label: "库存量",
        prop: "num",
    },{
        label: "领用量",
        prop: "userInput",
        slot: true,
    },{
        label: "单位",
        prop: "unit",
    }]
};

export const addModeSelectModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    menu: false,
    menuBtn: false,
    addBtn:false,
    cellBtn: false,
    size: 'mini',
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuAlign: "center",
    column: [{
        label: "物品编号",
        prop: "coded",
    },{
        label: "物品名称",
        prop: "name",
    },{
        label: "规格",
        prop: "specs",
    },{
        label: "库存量",
        prop: "inventoryCount",
    },{
        label: "单位",
        prop: "unit",
    }]
};

export const addModeTreeProps = {
    children: 'children',
    label: 'label'
}

export const examineModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    size: 'mini',
    selection: false,
    menu: false,
    menuBtn: false,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuAlign: "center",
    column: [{
        label: "物品编号",
        prop: "goodsCoded",
    },{
        label: "物品名称",
        prop: "name",
    },{
        label: "规格",
        prop: "specs",
    },{
        label: "库存量",
        prop: "maxNum",
    },{
        label: "领用量",
        prop: "num",
    },{
        label: "单位",
        prop: "unit",
    }]
};